use MailSender;
 
$htmlfile = '<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>';   

$sender = new MailSender {smtp = 'smtp.nokia.com'};
$sender-Open({ from = 'mape2emonitoring_SVC_BE@nokia.com', to = 'ext-duan.ken@nokia.com', subject = 'HTML test',
        headers = MIME-Version 1.0rnContent-type texthtmlrnContent-Transfer-Encoding 7bit
}) or die $MailSenderError,n;
 
$sender-Send($_);
$sender-Close();